package com.accp.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import com.accp.entity.TzUser;
import com.accp.response.ResultResponse;
import com.accp.service.ITzUserService;
import com.accp.util.ResultVOUtil;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author 辉
 * @since 2019-12-26
 */
@RestController
@RequestMapping("/accp/tzUser")
public class TzUserController {

	@Autowired
	ITzUserService iTzUserService;
	
	@PostMapping("/login")
	public ResultResponse login(TzUser tzUser) {
		System.out.println(tzUser);
		return ResultVOUtil.success(iTzUserService.list());
	}
	
	@GetMapping("/test")
	public ResultResponse test() {
		System.out.println(11111111);
		return ResultVOUtil.success(iTzUserService.list());
	}
	
}

